@layout("../layout/_layout.html"){
<div id="toolbar" class="row-fluid">
    <div class="form-inline pull-left" role="form">
        <div class="form-group">
            <input name="search" class="form-control" type="text" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-primary searchButton">查找</button>
    </div>
    
    <div class="btn-group pull-right"  role="group">
        <button id="add-role" type="button" class="btn btn-primary addButton" data-toggle="modal" data-target="#addUserDialog">
            <span class="glyphicon glyphicon-plus">添加用户</span>
        </button>
        <button id="edit-role" type="submit" class="btn btn-warning editButton" data-toggle="modal" data-target="#addUserDialog" disabled>
            <span class="glyphicon glyphicon-edit">修改</span>
        </button>
        <button id="delete-role" type="submit" class="btn btn-danger deleteButton" disabled delete-action="/system/doDeleteUser">
            <span class="glyphicon glyphicon-remove">删除用户</span>
        </button>
    </div>
   
</div>
@include("_editUser.html",{dialogId:"addUserDialog"}){}
<table id="usersList" class="dataTable"
    data-toggle="table"
    data-toolbar="#toolbar"
    data-height="600"
    data-url="/system/getUsers"
    data-query-params="queryParams"
    data-show-columns="false"
    data-side-pagination="server"
    data-pagination="true"
    data-page-list="[5, 10, 20, 50, 100, 200]"
    data-search="false"
    data-click-to-select="true"
    data-id-field="id">
    <thead>
    <tr>
        <th data-field="check" data-checkbox="true"></th>
        <th data-field="id">ID</th>
        <th data-field="login_name">登录名</th>
        <th data-field="real_name">真实姓名</th>
        <th data-field="email">用户邮箱</th>
        <th data-field="tel">联系电话</th>
        <th data-field="status" data-formatter="statusFormatter">状态</th>
        <th data-field="remark">备注</th>
    </tr>
    </thead>
</table>

<script src="${CONTEXT_PATH}/static/js/listEvents.js"></script>
<script src="${CONTEXT_PATH}/static/js/formatter.js"></script>
@};

